// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'
import './assets/iconfont/iconfont.css'
import changeImg from './components/changeImg'
import site from './components/unuseds/site'
import pay2 from './components/pay2'
// import VueResource from 'vue-resource'
import axios from 'axios'

// import VueAxios from 'vue-axios'


Vue.config.productionTip = false
// Vue.prototype.$post = post
// Vue.prototype.$get = fetch
// Vue.prototype.$doCode = doCode
 Vue.prototype.$http = axios
// Vue.prototype.$f = f
// Vue.prototype.$z = z

Vue.use(ElementUI)
// Vue.http.options.emulateJSON = true
// Vue.http.options.xhr = { withCredentials: true }
Vue.use(MintUI)
Vue.component('changeImg', changeImg)
Vue.component('site', site)
Vue.component("pay2", pay2)

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: {
    App
  },
  template: '<App/>'
})
